<template lang="">
    <div v-show="(navbarType == 'home')">
        <div class="aritval-bar flex-row">
            <div class="flex-row">
                <div class="text">职业发展平台</div>
            </div>
            <div class="flex-row">
                <div class="picture">
            <img src="@/assets/homePicture/userpicture.png">
          </div>
                <div class="login-info">
                    <p>欢迎您，{{username}}</p>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
  props:['navbarType'],
  data(){
    return {
      activeIndex:'classApply',
      username:''
    }
  },
  mounted(){
    let userInfo = JSON.parse(localStorage.getItem('menuList'));
    this.username = userInfo.username;
  }
};
</script>
<style lang="less">
@import url("~@/pagecss/public.less");
.aritval-bar {
  justify-content: space-between;
  height: 57px;
  padding: 13px 27px;
  background: rgba(255, 255, 255, 1);
  box-sizing: border-box;
  .picture {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    border-radius: 50%;
    background-color: antiquewhite;
  }
  .text {
    font-size: 20px;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
    line-height: 50px;
  }
  .login-info {
    p {
      line-height: 19px;
      font-size: 13px;
      font-weight: 300;
      color: rgba(102, 102, 102, 1);
    }
  }
}
</style>